package com.crm.business.crm.service;


import com.crm.common.crm.entity.BO.CrmModelSaveBO;
import com.crm.common.crm.entity.BO.CrmRoiSearchBO;
import com.crm.common.crm.entity.BO.CrmUpdateInformationBO;
import com.crm.common.crm.entity.PO.CrmHeadquartersBusiness;
import com.crm.common.crm.entity.VO.CrmModelFiledVO;
import com.crm.common.ka.core.entity.BasePage;
import com.crm.business.servlet.BaseService;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;


/**
 * <p>
 * 总部充值表 服务类
 * </p>
 *
 */
public interface ICrmHeadquartersBusinessService extends BaseService<CrmHeadquartersBusiness> {

    public CrmHeadquartersBusiness queryBySource(String topUpSource);

    public void deleteByIds(CrmHeadquartersBusiness crmHeadquartersBusiness);

    public CrmHeadquartersBusiness queryById(Integer id);

    public BasePage<CrmHeadquartersBusiness> queryPageList(@RequestBody CrmRoiSearchBO search);

    public void addOrUpdate(CrmModelSaveBO crmModel);

    void updateInformation(CrmUpdateInformationBO updateInformationBO);

    public List<CrmModelFiledVO> queryField(Integer id);

    public void downloadExcel(HttpServletResponse response) throws IOException;

    public void exportExcel(HttpServletResponse response, CrmRoiSearchBO search);

    public CrmHeadquartersBusiness getListById(Integer id);

}
